class Category < ActiveRecord::Base

  acts_as_tree :order => :name
  validates_presence_of :name
  attr_accessor :style
  
  belongs_to :user, :foreign_key => :creator_id
  has_and_belongs_to_many :questions
  has_and_belongs_to_many :questionnaires

end
